package com.sc.highspeed.db.dao;

import com.sc.highspeed.db.model.UserModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Admin on 2017/11/27.
 */
public interface UserDao {

    UserModel getUserByNumber(String number);
    List<UserModel> getUserList();
    UserModel getUserByUsername(String username);
    List<UserModel> getUserListByOrg(String organization);
    List<UserModel> getUserListByGroupAndOrg(@Param("userGroup") String userGroup, @Param("organization") String organization);
    int insertUser(UserModel userModel);
    int deleteUserByNumber(String number);
    int updateUserByUsername(UserModel userModel);
    int updateUserGroupByNumber(@Param("userGroup") String userGroup, @Param("number") String number);
    int updateUserOrganization(@Param("username") String  username, @Param("organization") String organization);
    int deleteUserByUsername(String username);

}
